package com.xunce.xcworkservice.Enums;

public class Enums {

    // 员工状态
    public enum AccountState {
        //可用
        ENABLED(1),
        //禁用
        DISABLED(0);

        private final Integer value;

        AccountState(Integer value) {
            this.value = value;
        }

        public Integer getValue() {
            return value;
        }
    }

    //员工性别
    public enum AccountSex {
        //女
        WOMAN(0, "女"),
        //男
        MAN(1, "男");

        private final Integer value;
        private final String name;

        AccountSex(Integer value, String name) {
            this.value = value;
            this.name = name;
        }

        public Integer getValue() {
            return value;
        }
        public String getName() {
            return name;
        }
    }

    public enum AccountNeed {
        //不需要
        NO_NEED(0, "不需要"),
        //需要
        NEED(1, "需要");

        private final Integer value;
        private final String name;

        AccountNeed(Integer value, String name) {
            this.value = value;
            this.name = name;
        }

        public Integer getValue() {
            return value;
        }
        public String getName() {
            return name;
        }
    }

    //部门类型
    public enum DepartmentType {
        //一级
        LEVEL1(1),
        //二级
        LEVEL2(2),
        //三级
        LEVEL3(3);
        private final Integer value;

        DepartmentType(Integer value) {
            this.value = value;
        }

        public Integer getValue() {
            return value;
        }
    }

    public enum RoleState {
        //可用
        ENABLED(1),
        //禁用
        DISABLED(0);

        private final Integer value;

        RoleState(Integer value) {
            this.value = value;
        }

        public Integer getValue() {
            return value;
        }
    }
}
